<template>
  <view class="account">
    <view class="coby-box">
      <view class="box-url">
        {{item.statNetAddress}}
      </view>
      <view class="box-btn" @click="copyOrder(item.statNetAddress)">
        复制
      </view>
    </view>
    <view class="text1 topM38">
      为了更好的体验提现效果，建议您在电脑端进行访问对账，请点击“复制”按钮复制链接至电脑访问
    </view>
    <view class="text2">
      登录账号
    </view>
    <view class="text1 topM20">
      <view>登录账号:{{item.statAccountNum}}</view>
      <view>初始密码:申请收款码时填写法人身份证号码后六位</view>
    </view>
    <view class="text2">
      对账的查询路径
    </view>
    <view class="text1 topM20">
      <view>左侧菜单栏选中【结算账户业务】--子菜单栏点击【结算账户明细】进行查询</view>
    </view>
    <!-- <view class="text2 topM96">
      查询教程
    </view>
    <view class="radio">
      <video id="myVideo" :src="item.storeCollectUrl" enable-danmu danmu-btn controls></video>
    </view> -->
  </view>
</template>

<script>
import { getQrcodeInfoApi } from "@/service/qrCode/qrCode.service.js"
export default {
  data() {
    return {
      item: null
    };
  },
  mounted() {
    this.getInfo()
  },
  methods: {
    getInfo () {
      //id=1=>易生支付
      getQrcodeInfoApi({id: 1}, res => {
        if (res.status == 0) {
          this.item = res.data;
        } else {
          uni.showToast({
            title: res.msg,
            icon: 'none',
            success: function() {
              uni.switchTab({
                url: '/pages/index/index'
              });
            }
          });
        }
      })
    },
    copyOrder (order) {
      this.$copyText(order).then(function (e) {
        uni.showToast({
          title: '复制成功',
          icon:"none"
        })
      }, function (e) {
        uni.showToast({
          title: '复制失败',
          icon:"none"
        })
      })
    },
  }
}
</script>

<style lang="scss" scoped>
.account {
  padding: 150rpx 32rpx;
  background-color: #FFFFFF;
  height:  calc(100vh - 150px);
  .coby-box {
    display: flex;
    .box-url {
      width: 323rpx;
      height: 80rpx;
      line-height: 80rpx;
      padding: 0 60rpx;
      background-color: #E1E1E1;
      border-radius: 10rpx;
      font-size: 30rpx;
      color: #434343;
      white-space: normal;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 1;
      -webkit-box-orient: vertical;
      word-break: break-all;
    }
    .box-btn {
      width: 224rpx;
      height: 80rpx;
      line-height: 80rpx;
      background: rgba(67,67,67,1);
      border-radius: 10rpx;
      text-align: center;
      color: #F6DA99;
      margin-left: 20rpx;
    }
  }
  .text1 {
    padding-left: 44rpx;
    font-size: 30rpx;
    font-family: PingFang SC;
    font-weight: 500;
    color: rgba(153,153,153,1);
    line-height: 1.5;
    &.topM38 {
      margin-top: 38rpx;
    }
    &.topM20 {
      margin-top: 20rpx;
    }
  }
  .text2 {
    font-size: 36rpx;
    font-family: PingFang SC;
    font-weight: 500;
    color: rgba(51,51,51,1);
    margin-top: 50rpx;
    font-weight: bold;
    &.topM96 {
      margin-top: 96RPX;
    }
  }
  .radio {
    width: 100%;
    height: 320rpx;
    padding-left: 44rpx;
    margin-top: 20rpx;
    uni-video {
      width: 600rpx;
      height: 320rpx;
      border-radius: 10rpx;
    }
  }
}
</style>
